﻿///////////////////////////////////////////////////////////
//  ContextMenu.cs
//  Implementation of the Class ContextMenu
//  Created on:      30-jul-2008 21:35
//  Original author: POliveira.7Comm
///////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
using System.Windows.Media;

namespace PSE.Framework.UI.Controls.SmartClient
{
    /// <summary>
    /// Componente de exibição do menu contextual
    /// </summary>
    public class ContextMenu : System.Windows.Controls.ContextMenu
    {

        protected override System.Windows.DependencyObject GetContainerForItemOverride()
        {
            return new ContextMenuItem();
        }

        protected override bool IsItemItsOwnContainerOverride(object item)
        {
            return (item is ContextMenuItem) || 
                   (item is ContextMenuItemSeparator) || 
                   (item is Panel);
        }
    }
}
